﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/ManagerView.master"
    AutoEventWireup="true" CodeBehind="PageChangePassword.aspx.cs" Inherits="BestBuy.PageAdmin.PageChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%" align="center">
        <tr>
            <td colspan="2" class="td_center">
                <h1>
                    <asp:Label ID="lbInFo" runat="server" Text="Change Password"></asp:Label>
                </h1>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td width="300px" class="td_left">
                <asp:Panel ID="pnThongBao" runat="server">
                    <asp:Label ID="lbThongBao" runat="server"></asp:Label>
                </asp:Panel>
                <asp:ValidationSummary ID="ValidationSummaryPassword" runat="server" CssClass="InLeft error message" />
            </td>
        </tr>
        <tr>
            <td class="td_right">
                <asp:Label ID="lbOldPass" runat="server" AssociatedControlID="txtOldPass" CssClass="control-label">Current password:</asp:Label>
            </td>
            <td class="td_left">
                <asp:TextBox ID="txtOldPass" Width="250px" runat="server" CssClass="passwordEntry"
                    TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server" ControlToValidate="txtOldPass"
                    CssClass="failureNotification" ErrorMessage="Old password isn't null." ToolTip="Old password.">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="cvOldPass" CssClass="failureNotification" runat="server"
                    ControlToValidate="txtOldPass" ErrorMessage="Old password is incorrect." OnServerValidate="cvOldPass_ServerValidate">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="td_right">
                <asp:Label ID="lbNewPass" runat="server" AssociatedControlID="txtNewPass" CssClass="control-label">New password:</asp:Label>
            </td>
            <td class="td_left">
                <asp:TextBox ID="txtNewPass" Width="250px" runat="server" CssClass="passwordEntry"
                    TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ControlToValidate="txtNewPass"
                    CssClass="failureNotification" ErrorMessage="New password isn't null." ToolTip="New password.">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="td_right">
                <asp:Label ID="lbPrePass" runat="server" AssociatedControlID="txtPrePass" CssClass="control-label">Retype password:</asp:Label>
            </td>
            <td class="td_left">
                <asp:TextBox ID="txtPrePass" Width="250px" runat="server" CssClass="passwordEntry"
                    TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPrePassword" runat="server" ControlToValidate="txtPrePass"
                    CssClass="failureNotification" ErrorMessage="Retype password isn't null." ToolTip="Again new password.">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="cvPrePassword" CssClass="failureNotification" runat="server"
                    ControlToValidate="txtPrePass" ErrorMessage="Retype password is incorrect." OnServerValidate="cvPrePassword_ServerValidate">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="td_left">
                <asp:Button ID="btnChange" runat="server" CssClass="style_button" Text="Change" CausesValidation="true"
                    OnClick="btnChange_Click" />
                &nbsp;&nbsp;
                <asp:Button ID="btnClear" runat="server" CssClass="style_button" Text="Clear" OnClick="btnClear_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
